  <div class="content col-xs-12 col-sm-10">
            <div class="banner">
              <p class="fl">栏目管理 > 栏目修改</p>
            </div>
          
            <div class="infoBox">
              <div class="info">
        <?php echo validation_errors(); ?>

         <?php 
            $attributes = array('enctype' => 'multipart/form-data');
              echo form_open('catalog/update/'.$catalogInfo->id); 
            ?>                   
                        <div class="line">
                            <label>标题:</label>
                            <input type="text" name="title" value="<?=$catalogInfo->title?>" />
                        </div>

                        <div class="line">
                            <label>父节点:</label>
                            <select name="parentid"  class="level">
                               <option value='0'>无</option>;
                               <?php 
                                foreach ($cataloglist as $item)
                                {
                                  if ($item['parentid'] == $catalogInfo->parentid)
                                  {
                                      echo "<option value='".$item['id']."' selected>".$item['title']."</option>";
                       
                                  }
                                  else {
                                      echo "<option value='".$item['id']."'>".$item['title']."</option>";
                                  }
                                }

                                ?>
                            </select> 
                              
                          </div>  
                     
                        <div class="line">
                            <label>顺序:</label>
                            <input type="text" name="orders" value="<?=$catalogInfo->orders?>" />
                        </div>

                        <div class="lastLine">
                          <input type="submit" value="修改" class="add"/>
                          <!-- <input type="button" value="" class="cancel fr"/> -->

                      </div>  
                 </form> 
                </div>

            </div>
          
        </div>
      </div>
    </div>